package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.Caring;
import cn.gson.boot.model.pojos.CaringType;
import cn.gson.boot.model.pojos.Contacts;
import cn.gson.boot.model.pojos.Kehu;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CaringMapper {

    //客户关怀分页
    public List<Caring> selectCaring(@Param("search") String search,
                                     @Param("type") String type,
                                     @Param("empName") String empName);

    //通过id查询需要修改的客户关怀
    public List<Caring> selectId(@Param("caringId") Integer caringId);

    //关怀类型列表
    public List<CaringType> selectType();

    //客户模糊查询列表
    public List<Kehu> selectKehu(@Param("khsearch") String khsearch,
                                 @Param("empName") String empName);

    //客户联系人查询
    public List<Contacts> selectLxr(@Param("khName") String khName);


}
